package Protocol;

import java.io.Serializable;

/**
 * Object welke verstuurd wordt naar de server bevat de benodigde gegevens zoals de uit te voeren actie, het commando, de gebruikersnaam en wachtwoord
 * Class is Serializable omdat deze met een Stream verzonden en ontvangen moet worden
 * @author Michael Stevens
 * @since 04-05-2012
 */
public class ClientObject implements Serializable{
    private String username, password, action, command;
    
    public ClientObject(String username, String password, String action, String command){
        this.username = username;
        this.password = password;
        this.action = action;
        this.command = command;
    }
    
    /**
     * @return the username
     */
    public String getUsername() {
        return username;
    }

    /**
     * @param username the username to set
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password the password to set
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * @return the action
     */
    public String getAction() {
        return action;
    }

    /**
     * @param action the action to set
     */
    public void setAction(String action) {
        this.action = action;
    }

    /**
     * @return the command
     */
    public String getCommand() {
        return command;
    }

    /**
     * @param command the command to set
     */
    public void setCommand(String command) {
        this.command = command;
    }
}
